import inquirer from 'inquirer'
import ora from 'ora'
import fs from 'fs-extra'
import gitClone from 'git-clone'
import chalk from 'chalk'

const spinner = ora('downing ...')

const message = chalk.green(`
  

`)

export default async function(name:string, option:object) {
  try {
    const answer = await inquirer.prompt([
      {
        name:'pkgName',
        type:'input',
        message:'Package name: ',
        default:'cva'
      },
      {
        name:'useJsx',
        type:'confirm',
        message:'Add jsx support ? ',
        default:false,
      },
      {
        name:'tools',
        type:'checkbox',
        message:'Select tools ? ',
        choices:['vue-router', 'eslint', 'axios']
      },
      {
        name:'stateManager',
        type:'list',
        message:'Select state manager for vue ? ',
        choices:[
          {name:'vuex', value:'vuex'},
          {name:'pinia', value:'pinia'},
  
        ]
      }
    ])


  } catch {

  }
}
